﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QunYing.BLL;
using QunYing.Common;
using VipInfo = QunYing.Model.VipInfo;
using System.ServiceModel;

namespace Client
{
    public partial class FrmGisMap : BasePopForm
    {
        public string strUserID = "";
        public FrmGisMap()
        {
            InitializeComponent();
        }

        private void FrmGisMap_Load(object sender, EventArgs e)
        {
            QunYing.Model.VipInfo model = new QunYing.BLL.VipInfo().GetModelByID(strUserID);
            var opera = ClientProxyFactory.GetProxy<IImageOperator>(QunYing.Common.GlobalInfo.ServiceImageOperationVip);
            Bitmap[] bp = opera.GetImages(GlobalInfo.UserLoginInfo.用户ID, new string[] {model.会员卡号 + ".jpg" });
            if (bp.Length != 0)
            {
                this.pictureEdit1.Image = bp[0];
            }
            (opera as ICommunicationObject).Close();
        }
    }
}